package com.hdaccp.xingmu.dao;

import com.hdaccp.xingmu.entity.Car;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CarDao extends JpaRepository<Car,Long> {

    List<Car> findAll(Specification specification);

    Page<Car> findAll(Specification specification, Pageable pageable);


}
